package cn.xhy.material.dal.mysql.pojectinfo;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.xhy.material.dal.dataobject.pojectinfo.ContractDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 销售合同 Mapper
 *
 * @author xhy
 */
@Mapper
public interface ContractMapper extends BaseMapperX<ContractDO> {

    default List<ContractDO> selectListByProjectInfoId(Integer projectInfoId) {
        return selectList(ContractDO::getProjectInfoId, projectInfoId);
    }

    default int deleteByProjectInfoId(Long projectInfoId) {
        return delete(ContractDO::getProjectInfoId, projectInfoId);
    }

}
